package com.javasea.scene.repeatSubmit.example2.controller;

import com.javasea.scene.repeatSubmit.example2.lock.NoRepeatSubmit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@ClassName DemoController
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2020/11/29 0029 0:15
 */
@Slf4j
@Service
public class DemoService {

    public void test(){
        log.warn("111111111111111111");
        try {
            Thread.sleep(10_000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.warn("222222222222222222");
    }

    public void test2(){
        log.warn("33333333");
        try {
            Thread.sleep(10_000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.warn("4444444");
    }

}
